<%@ page import="java.util.*" %>



<jsp:useBean id="phoneAcct" class="se2.PhoneAccount" scope="request"/>
<jsp:setProperty name="phoneAcct" property="*"/>

	
<% 
		
		if (phoneAcct.addPhoneAccount(Integer.valueOf(request.getParameter("id"))))
		{
			out.println("Phone Added");	
			String s = "viewCustomerAccountDetails.jsp?id=" + request.getParameter("id");
%>
			
		<jsp:forward page="<%= s %>" />

<%
	
		}
		else
		{
			out.println("Error Creating Phone Account");
			String s = "error.jsp?url=addPhoneAccount.jsp&id=" + request.getParameter("id");
			
%>
		<jsp:forward page="<%= s %>" />
			
<%
		}

%>
